package tuanda.soict.firstsun.LogicPackage;

import java.util.ArrayList;

import tuanda.soict.firstsun.AbilityPackage.Ability;

/**
 * @author tuanda_soict_hut
 * @version 0.0.3
 * @since 7-9-2012
 */
public class MovementSet extends AttackSet {

	private int movementLeft;
	private ArrayList<AttackSet> attackSet;
	private AttackSet occupySet;
	private ArrayList<Ability> abilitySet;

	public MovementSet(int x, int y) {
		super(x, y);
		attackSet = new ArrayList<AttackSet>();
		abilitySet = new ArrayList<Ability>();
		occupySet = null;
	}

	public final void addAttackItem(int x, int y) {
		this.attackSet.add(new AttackSet(x, y));
	}

	public final void setAttackSet() {
		this.attackSet = new ArrayList<AttackSet>();
	}

	public final void setAttackSet(ArrayList<AttackSet> atkSet) {
		this.attackSet = atkSet;
	}

	public final ArrayList<AttackSet> getAttackSet() {
		return this.attackSet;
	}

	public final void setOccupySet(int x, int y) {
		this.occupySet = new AttackSet(x, y);
	}

	public final void setOccupySet(int x, int y, int point) {
		this.occupySet = new AttackSet(x, y);
		occupySet.setPoint(point);
	}

	public final void setOccupySet(AttackSet coor) {
		this.occupySet = coor;
	}

	public final AttackSet getOccupySet() {
		return this.occupySet;
	}

	public final void addAbilityItem(Ability ability) {
		this.abilitySet.add(ability);
	}

	public final void setAbilitySet() {
		this.abilitySet = new ArrayList<Ability>();
	}

	public final void setAbilitySet(ArrayList<Ability> abilSet) {
		this.abilitySet = abilSet;
	}

	public final ArrayList<Ability> getAbilitySet() {
		return this.abilitySet;
	}

	public final void setMovementLeft(int movLeft) {
		this.movementLeft = movLeft;
	}

	public final int getMovementLeft() {
		return this.movementLeft;
	}
}
